// https://vuex.vuejs.org/en/getters.html

export default {
    //state中的状态获取
    getUsername(state) {
        return state.user.username
    },
    getAvatar(state) {
        return state.user.avatar
    },
    getSignature(state) {
        return state.user.signature
    },
    getCheckMenuNav(state) {
        return state.sys.checkMenuNav
    },
    getCheckBlogType(state) {
        return state.sys.checkBlogType
    },
    getCheckBlogTag(state) {
        return state.sys.checkBlogTag
    },
    getShowLogin(state) {
        return state.sys.showLogin
    },

    getBlogType(state) {
        return state.blog.blogType
    },
    getBlogTag(state) {
        return state.blog.blogTag
    },
    getTypeSelected(state) {
        return state.blog.isTypeSelected
    },
    getTagSelected(state) {
        return state.blog.isTagSelected
    },
}
